#!/usr/bin/env python
# -*- coding: utf-8 -*-

# created by: lavenliu
# created date: 2015-12-31
# Obtain Web page Information

import sys
import urllib2

req = urllib2.Request(sys.argv[1])
fd = urllib2.urlopen(req)
print "Retrived", fd.geturl()

info = fd.info()
for key, value in info.items():
    print "%s = %s" % (key, value)
